package com.erpbo.ebapp.api;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import javax.inject.Inject;

import org.osgl.mvc.annotation.GetAction;

import com.erpbo.ebapp.model.EbwxcpUser;

import act.controller.Controller;
import act.db.ebean.EbeanDao;
import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.cp.api.WxCpService;
import me.chanjar.weixin.cp.bean.WxCpDepart;
import me.chanjar.weixin.cp.bean.WxCpMessage;
import me.chanjar.weixin.cp.bean.WxCpUser;


public class EmployeeController extends Controller.Util {
	
	@Inject
	private EbeanDao<Long, EbwxcpUser> dao;

	@GetAction("/employee/list")
	public void list() {
		
		dao.findAll();

		renderJson(dao.findAll());
	}

	
}
